IMInterstitialDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | IMInterstitialDelegate.h |
Overview
- A listener for receiving notifications during the lifecycle of an interstitial. *
- Note All the events in this listener will be invoked on your application’s UI thread.
In most cases your application will need to listen for the following events on an interstitial
The outcome of an ad request (if the request succeeded or failed); see interstitialDidFinishLoading:(IMInterstitial)interstitial; and interstitial:(IMInterstitial)interstitial didFailToLoadWithError:(IMRequestStatus*)error;
The full screen ad is diplayed that covered the screen. This means that the user can no longer interact with your application; see interstitialDidPresent:(IMInterstitial *)interstitial;
The full screen ad was dismissed. The user is now free to interact with your application; see interstitialDidDismiss:(IMInterstitial*)interstitial;
A user interaction with the ad will result in the User leaving your application context; see userWillLeaveApplicationFromInterstitial:(IMInterstitial*)interstitial;
If your application involves running rewarded or incentivised ads, then you should, in addition to the above events, also listen for the interstitial:(IMInterstitial)interstitial rewardActionCompletedWithRewards:(NSDictionary)rewards event and handle it appropriately to unlock rewards for the user of your app.
Tasks
-
– interstitialDidReceiveAd: -
– interstitialDidFinishLoading: -
– interstitial:didFailToLoadWithError: -
– interstitialWillPresent: -
– interstitialDidPresent: -
– interstitial:didFailToPresentWithError: -
– interstitialWillDismiss: -
– interstitialDidDismiss: -
– interstitial:didInteractWithParams: -
– interstitial:rewardActionCompletedWithRewards: -
– userWillLeaveApplicationFromInterstitial:
Instance Methods
interstitial:didFailToLoadWithError:
Notifies the delegate that the interstitial has failed to load with some error.
- (void)interstitial:(IMInterstitial *)interstitial didFailToLoadWithError:(IMRequestStatus *)errorDiscussion
Notifies the delegate that the interstitial has failed to load with some error.
Declared In
IMInterstitialDelegate.hinterstitial:didFailToPresentWithError:
Notifies the delegate that the interstitial has failed to present with some error.
- (void)interstitial:(IMInterstitial *)interstitial didFailToPresentWithError:(IMRequestStatus *)errorDiscussion
Notifies the delegate that the interstitial has failed to present with some error.
Declared In
IMInterstitialDelegate.hinterstitial:didInteractWithParams:
Notifies the delegate that the interstitial has been interacted with.
- (void)interstitial:(IMInterstitial *)interstitial didInteractWithParams:(NSDictionary *)paramsDiscussion
Notifies the delegate that the interstitial has been interacted with.
Declared In
IMInterstitialDelegate.hinterstitial:rewardActionCompletedWithRewards:
Notifies the delegate that the user has performed the action to be incentivised with.
- (void)interstitial:(IMInterstitial *)interstitial rewardActionCompletedWithRewards:(NSDictionary *)rewardsDiscussion
Notifies the delegate that the user has performed the action to be incentivised with.
Declared In
IMInterstitialDelegate.hinterstitialDidDismiss:
Notifies the delegate that the interstitial has been dismissed.
- (void)interstitialDidDismiss:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the interstitial has been dismissed.
Declared In
IMInterstitialDelegate.hinterstitialDidFinishLoading:
Notifies the delegate that the interstitial has finished loading and can be shown instantly.
- (void)interstitialDidFinishLoading:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the interstitial has finished loading and can be shown instantly.
Declared In
IMInterstitialDelegate.hinterstitialDidPresent:
Notifies the delegate that the interstitial has been presented.
- (void)interstitialDidPresent:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the interstitial has been presented.
Declared In
IMInterstitialDelegate.hinterstitialDidReceiveAd:
Notifies the delegate that the ad server has returned an ad. Assets are not yet available. Please use interstitialDidFinishLoading: to receive a callback when assets are also available.
- (void)interstitialDidReceiveAd:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the ad server has returned an ad. Assets are not yet available. Please use interstitialDidFinishLoading: to receive a callback when assets are also available.
Declared In
IMInterstitialDelegate.hinterstitialWillDismiss:
Notifies the delegate that the interstitial will be dismissed.
- (void)interstitialWillDismiss:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the interstitial will be dismissed.
Declared In
IMInterstitialDelegate.hinterstitialWillPresent:
Notifies the delegate that the interstitial would be presented.
- (void)interstitialWillPresent:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the interstitial would be presented.
Declared In
IMInterstitialDelegate.huserWillLeaveApplicationFromInterstitial:
Notifies the delegate that the user will leave application context.
- (void)userWillLeaveApplicationFromInterstitial:(IMInterstitial *)interstitialDiscussion
Notifies the delegate that the user will leave application context.
Declared In
IMInterstitialDelegate.h